package Help.Manager.Album;
import java.io.File;

import android.os.Environment;

public class ExternalStorageHelpers {
	public static boolean externalStorageAvailable() {
	    String state = Environment.getExternalStorageState();
	    
	    if(Environment.MEDIA_MOUNTED.equals(state) ||
	    		Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) {
	    	return true;
	    }
	    
	    return false;
	}

	public static void deleteFile(String path) {
		try {
			File file = new File(path);
			file.delete();
		}
		catch(Exception e) {
			
		}
		
	}
	
}
